<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>保证金退还 列表</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>

<script type="text/javascript">


	function openHouseSelect(){ //打开选房间的页面
		var ownerUrl = "${ctx}/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
		ownerUrl += "&parentFrameId=depositAccountingSearchIfm";
		top.windowOpen(ownerUrl , "chooseBuildFrm", "选择房间",500,800);
	}

	function setHouseInfo(houseId,houseNum){	//设置房号
		document.getElementById("houseNumber").value = houseNum;
	}

	function submitSearch(){ //查询
		var isTrue =$ ("depositAccountingSearchForm").fireEvent("onSubmit");
		if (isTrue){
			var params = $("depositAccountingSearchForm").serialize();
			var url = "${ctx}/renovation_depositAccountingAction.do?method=setDepositAccountingSearchCondition";
			sendAjaxRequest(url,params,function(){
				findFrame("main").reflesh(); //刷新列表
				windowClose();
			});
		}
	}

</script>

</head>


<body>
<form id="depositAccountingSearchForm" name="depositAccountingSearchForm" action="" method="post" class="required-validate">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle" /> <span class="window_head_intext">高级查询</span></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" ""border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">


          <tr>
            <td class="aux_intable_td1">楼 栋：</td>
            <td class="aux_intable_td2">
              <pms:unitedSelect
               		id="buildingId"
               		name="buildingId"
               		optionLabel="name"
               		optionValue="keyword"
               		selectText="请选择..."
               		dataList="${buildingList}"
               		style="width:90px;">
	         </pms:unitedSelect>
            </td>
            <td class="aux_intable_td1">核算人：</td>
            <td class="aux_intable_td2"><input name="accountingName" id="accountingName" type="text" class="inputtext" value="" size="16" /></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">房 号：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="houseNumber" id="houseNumber" type="text" class="inputtext" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><a href="#"  onClick="openHouseSelect();" onFocus="this.blur()"><img src="${ctx}/images/ico_houesno.GIF" alt="请点选查找房号" border="0" /></a></td>
              </tr>
            </table></td>
            <td class="aux_intable_td1">审批状态：</td>
            <td class="aux_intable_td2">
              <pms:unitedSelect
	               		id="approvalState"
	               		name="approvalState"
	               		optionLabel="name"
	               		optionValue="value"
	               		selectText="请选择..."
	               		dataList="${approvalStateList}"
	               		style="width:90px;">
	         	  </pms:unitedSelect>
            </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">业主姓名：</td>
            <td class="aux_intable_td2"><input name="clientNames" id="clientNames" type="text" class="inputtext" value="" size="16" /></td>
            <td class="aux_intable_td1">费用状态：</td>
            <td class="aux_intable_td2">
            	<select name="feeState" id="feeState" style="width:90px;">
					<option value="">请选择...</option>
					<option value="1">已完成</option>
					<option value="0">未完成</option>
                 </select>
	        </td>
          </tr>
          <tr>
            <td class="aux_intable_td1">许可证号：</td>
            <td class="aux_intable_td2"><input name="licenceNumber" id="licenceNumber" type="text" class="inputtext" value="" size="16" /></td>
            <td class="aux_intable_td1">&nbsp;</td>
            <td class="aux_intable_td2">&nbsp;</td>
          </tr>
          <tr>
            <td class="aux_intable_td1">退还期限：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="returnBegin" id="returnBegin" type="text" class="inputtext validate-date" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><a href="#"><img id="imgReturnBegin" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0" /></a></td>
                <td width="4">&nbsp;至&nbsp;</td>
                <td><input name="returnEnd" id="returnEnd" type="text" class="inputtext validate-date" size="16" /></td>
				<td width="4">&nbsp;</td>
                <td><a href="#"><img id="imgReturnEnd" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0" /></a></td>
              </tr>
            </table></td>
            </tr>
          <tr>
            <td class="aux_intable_td1">核算时间：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="accountingBegin" id="accountingBegin" type="text" class="inputtext validate-date" size="16" /></td>
                <td width="4">&nbsp;</td>
                <td><a href="#"><img id="imgAccountingBegin" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0" /></a></td>
                <td width="4">&nbsp;至&nbsp;</td>
                <td><input name="accountingEnd" id="accountingEnd" type="text" class="inputtext validate-date" size="16" /></td>
				<td width="4">&nbsp;</td>
                <td><a href="#"><img id="imgAccountingEnd" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0" /></a></td>
              </tr>
            </table></td>
          </tr>

        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onClick="submitSearch();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onblur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 确 定</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onblur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom" /> 取 消</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>

<script type="text/javascript">
             Calendar.setup(
              {
	              inputField : "returnBegin", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgReturnBegin", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
              Calendar.setup(
              {
	              inputField : "returnEnd", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgReturnEnd", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );


              Calendar.setup(
              {
	              inputField : "accountingBegin", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgAccountingBegin", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );
               Calendar.setup(
              {
	              inputField : "accountingEnd", // ID of the input field
	              ifFormat : "%Y-%m-%d", // the date format
	              button : "imgAccountingEnd", // ID of the button
	             // align          :    "Tl",           // alignment (defaults to "Bl")
			      singleClick    :    true
              }
              );

</script>

</body>
</html>